package cn.zl.web.dto.virtualvideostream;

import cn.yunbamboos.rest.service.anno.param.ParamType;
import cn.yunbamboos.rest.service.anno.param.enums.Type;
import cn.yunbamboos.rest.service.dto.in.GenericInDTO;
import com.alibaba.fastjson2.JSONObject;
import jakarta.validation.constraints.NotNull;

public class PlayVirtualVideoStreamInDTO extends GenericInDTO {

    @NotNull(message = "文件ID不能为空")
    @ParamType(path = "file_id", type = Type.Long, title = "文件ID", required = true, example = "1")
    private String fileId;

    @Override
    public void decode(JSONObject json) {
        super.decode(json);
        this.fileId = json.getString("file_id");
    }

    public String getFileId() {
        return fileId;
    }
}
